﻿using AIStudio.Wpf.Demo01.Models;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIStudio.Wpf.Demo03.ViewModels
{
    internal class MainWindowViewModel : BindableBase
    {
        private ObservableCollection<SharpBase> _toolitems = new ObservableCollection<SharpBase>();
        public ObservableCollection<SharpBase> Toolitems
        {
            get { return _toolitems; }
            set { SetProperty(ref _toolitems, value); }
        }


        private ObservableCollection<SharpBase> _items = new ObservableCollection<SharpBase>();
        public ObservableCollection<SharpBase> Items
        {
            get { return _items; }
            set { SetProperty(ref _items, value); }
        }

        public MainWindowViewModel()
        {
            Items = new ObservableCollection<SharpBase> {
                new RectangleBase(){ Left = 0, Top=0,Width=100,Height=100},
                new EllipseBase(){ Left = 100, Top=100,Width=100,Height=100},
                new LineBase(){ Left = 200, Top=200,Width=100,Height=100}
            };

            Toolitems = new ObservableCollection<SharpBase> {
               new RectangleBase(){ Width=20,Height=20},
                new EllipseBase(){Width=20,Height=20 },
                new LineBase(){Width=20,Height=20 }
            };
        }
    }
}
